package end.ser;

import java.util.List;

import end.bean.shiro.Resource;
import end.dao.BaseMapper;

/**
 * 
 * ResourceSER.java 2016-7-14
 * 
 * Copyright zhaocj Inc. All rights reserved. Love Me Like Love Justin Bieber
 */
public interface ResourceSER<T> extends BaseSER<T>, BaseMapper<T> {
	public List<Resource> queryMenuResources();
	public Integer[] queryMenuRightsByManager(Object key);
	public List<Resource> queryFunctionByRoleId(Integer id);
	public List<Resource> queryFuncResourcesTree();
	public List<Resource> queryMenuResourcesTree();
	public Integer[] queryResourceRightsByRoleID(Object key);
	public boolean updateRightsResourceByRole(Integer[] rights, Integer roleID);
}
